package com.punai.standard.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.domain.TreeBo;
import com.punai.common.core.page.TableDataInfo;
import com.punai.standard.domain.StaGxChapter;
import com.punai.standard.domain.StaVersion;
import com.punai.standard.domain.vo.StaFeeVo;

import java.util.List;

/**
 * 工序章节Service接口
 *
 * @author zxw
 * @date 2022-12-13
 */
public interface IStaGxChapterService extends IService<StaGxChapter>
{
    /**
     * 查询工序章节
     *
     * @param id 工序章节主键
     * @return 工序章节
     */
    public StaGxChapter selectStaGxChapterById(String id);

    /**
     * 查询工序章节列表
     *
     * @param staGxChapter 工序章节
     * @return 工序章节集合
     */
    public List<StaGxChapter> selectStaGxChapterList(StaGxChapter staGxChapter);

    /**
     * 新增工序章节
     *
     * @param staGxChapter 工序章节
     * @return 结果
     */
    public int insertStaGxChapter(StaGxChapter staGxChapter);

    /**
     * 修改工序章节
     *
     * @param staGxChapter 工序章节
     * @return 结果
     */
    public int updateStaGxChapter(StaGxChapter staGxChapter);

    /**
     * 批量删除工序章节
     *
     * @param ids 需要删除的工序章节主键集合
     * @return 结果
     */
    public int deleteStaGxChapterByIds(String[] ids);

    /**
     * 删除工序章节信息
     *
     * @param id 工序章节主键
     * @return 结果
     */
    public int deleteStaGxChapterById(String id);

    List<TreeBo> treeData(String versionId,Long companyId);

    List<String> getSpecialtyList(Long companyId);

    List<StaVersion> getVersionListBySpecId(Long companyId,String topId);

    TableDataInfo feeList(StaFeeVo vo, Long companyId);

    public List<String> selectAddressByVersionId(String versionId);
}
